#include <iostream>
#include <vector>
using namespace std;
int main(){
	std::ios_base::fmtflags original_flags = std::cout.flags();   //1
	std::cout<<original_flags<<endl;
	std::cout<< 812<<'|';
	std::cout.setf(std::ios_base::left,
				   std::ios_base::adjustfield);                   //2
	std::cout.width(10);                                          //3
	std::cout << 813 << 815 << '\n';
	std::cout.unsetf(ios_base::adjustfield);                      //4
	std::cout.precision(5);
	std::cout.setf(std::ios_base::uppercase |
		  std::ios_base::scientific);                             //5
	std::cout << 831.0 << ' ' << 8e2;
	std::cout.flags(original_flags);							//6

	system("pause");
}